package cn.etynit.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author etyn
 * @since 2022-12-08
 */
@TableName("t_expense_car")
public class ExpenseCar extends Model<ExpenseCar> {

    private static final long serialVersionUID = 1L;
    /**
     * 车类型 0：小汽车  1：电瓶车
     */
    public static final Integer DONKEY_ENGINE = 0;
    public static final Integer ELECTROMOBILE = 1;

    /**
     * 初始车位
     */
    public static final Integer TOTAL_PARKING_SPACES = 100;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 车牌号
     */
    private String number;
    /**
     * 累计产生费用
     */
    private BigDecimal accumulative;
    /**
     * 剩余金额
     */
    private BigDecimal residue;
    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 车类型  0：小汽车，1：电瓶车等其他车
     */
    private Integer type;

    /**
     * 员工id
     */
    @TableField("employee_id")
    private Long employeeId;

    public Long getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Long employeeId) {
        this.employeeId = employeeId;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public BigDecimal getAccumulative() {
        return accumulative;
    }

    public void setAccumulative(BigDecimal accumulative) {
        this.accumulative = accumulative;
    }

    public BigDecimal getResidue() {
        return residue;
    }

    public void setResidue(BigDecimal residue) {
        this.residue = residue;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ExpenseCar{" +
        ", id=" + id +
        ", number=" + number +
        ", accumulative=" + accumulative +
        ", residue=" + residue +
        ", userId=" + userId +
        ", employeeId=" + employeeId +
        ", type=" + type +
        "}";
    }
}
